package com.allwees.bs.core.model.coupon.constant;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;

/**
 * 优惠券使用用途
 *
 * @author mouhaining
 * @since 2020-05-19 19:25
 */
@Getter
public enum ECashUseType implements IEnum<String> {

    SYSTEM_INVITEOR_RECEIVED(ChangeDirection.POSITIVE),//下单
    REFUNDED(ChangeDirection.POSITIVE),//退货
    ORDER_DEDUCT(ChangeDirection.NEGATIVE),//订单抵扣
    SYSTEM_INCREASE(ChangeDirection.NEGATIVE),//
    ;

    private ChangeDirection pointActiveType;

    ECashUseType(ChangeDirection pointActiveType) {
        this.pointActiveType = pointActiveType;
    }

    @Override
    public String getValue() {
        return name();
    }
}
